﻿using System.ServiceModel;
using Common;

namespace AuthorServiceLibrary
{
    [ServiceContract]
    public interface IAuthorService
    {
        [OperationContract]
        Response CreateArticle(string title, string text, string tags, string authorID, string attachmentID);
        [OperationContract]
        Response UpdateArticle(string ID, string title, string text, string tags, string attachmentID);
        [OperationContract]
        Response RecieveArticles(string authorID, int pageIndex, int pageSize);
        [OperationContract]
        Response GetArticleDetails(string articleID);
        [OperationContract]
        Response GetReviews(string authorID, int pageIndex, int pageSize);
        [OperationContract]
        Response GetArticleReviews(string articleID);
        [OperationContract]
        Response GetLastArticleReview(string articleID);
        [OperationContract]
        Response GetLastArticleReviews(string authorID);
    }       
}